<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
  <meta http-equiv="expires" content="0">
  <meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="cache-control" content="no-cache">
  <title>{$history_article['title']}</title>
  <meta content="{$history_article['title']}" name="keywords">
  <meta content="{$history_article['title']}" name="description">
  <link href="/assets/css/rest.css" type="text/css" rel="stylesheet">
  <link href="/assets/css/css.css" type="text/css" rel="stylesheet">
  <script type="text/javascript" src="/assets/js/jquery-1.9.1.min.js"></script>
  <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  <link href="/assets/css/article_at.css" type="text/css" rel="stylesheet">
</head>
<body>
<section class="wrap">
  <!--新增-->
  <div class="articles" style="margin-top:0px;">
    <div class="article_title">
      <h3>{$history_article['title']}</h3>
    </div>
    <div class="article_content" style="font-size: 14px; line-height: 24px;">
      <if condition="$history_article['pic'] neq ''"><img src="{$history_article['pic']}" style="width: 100%; display: block; clear: both; margin-bottom: 10px;"/></if>
      {$history_article['content']}
    </div>
  </div>
</section>
<script type="text/javascript">
  wx.config({
    debug: false,
    appId: '{$signPackage.appId}',
    timestamp: '{$signPackage.timestamp}',
    nonceStr: '{$signPackage.nonceStr}',
    signature: '{$signPackage.signature}',
    jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage']
  });
  wx.ready(function () {
    // 1 判断当前版本是否支持指定 JS 接口，支持批量判断
    wx.checkJsApi({
      jsApiList: [
        'getNetworkType',
        'previewImage',
        'onMenuShareTimeline',
        'onMenuShareAppMessage',
        'onMenuShareQQ',
        'onMenuShareWeibo'
      ],
      success: function (res) {
        //alert(JSON.stringify(res));
      }
    });
    var shareData = {
              title: '{$history_article.title}',
              desc: '{$history_article.content|msubstr=0,34}',
              link: '',
    imgUrl: '{$history_article['pic']}',
            trigger: function (res) {
      //alert('用户点击发送给朋友');
    },
    success: function (res) {
      //alert('已分享');
    },
    cancel: function (res) {
      //alert('已取消');
    },
    fail: function (res) {
      //alert(JSON.stringify(res));
    }
  };
    wx.onMenuShareAppMessage(shareData);
    wx.onMenuShareTimeline(shareData);
    wx.onMenuShareQQ(shareData);
    wx.onMenuShareWeibo(shareData);
  });
  wx.error(function (res) {
    //alert(res.errMsg);
  });
</script>
<!--公用底部-->
<include file="Index:footer" />
